<?php
/**
 * @link https://www.kancloud.cn/cleverstone/ymb2
 * @copyright Copyright (c) 2020 Yii Manager Software LLC
 */

use yii\helpers\Html;
use builder\base\BaseBundle;

BaseBundle::register($this);

/** @var \yii\web\View $this view组件实例 */
/** @var string $content 主体内容 */
/** @var string $uiTheme UI主题 */

$uiTheme = $this->params['uiTheme'];
$themeColor = $this->params['themeColor'];
?>
<?php $this->beginPage() ?>
    <!DOCTYPE html>
    <html lang="<?= Yii::$app->language ?>" class="h-100">
    <head>
        <meta charset="<?= Yii::$app->charset ?>">
        <meta name="viewport" content="initial-scale=1.0, width=device-width, shrink-to-fit=no">
        <?php $this->registerCsrfMetaTags() ?>
        <?= \builder\helper\H5::registerBackendMetaTags() ?>
        <title><?= Html::encode($this->title) ?></title>
        <?php $this->head() ?>

        <!--css变量-->
        <style>
            :root {
                --primary-color: <?= $themeColor ?>;
            }
        </style>
    </head>
    <body class="<?= $uiTheme ?> d-flex flex-column h-100" ng-cloak ng-app="ym2.app">
    <?php $this->beginBody() ?>

    <main role="main" class="flex-grow-1 layui-row">
        <?= $content ?>
    </main>

    <?php $this->endBody() ?>
    </body>
    </html>
<?php $this->endPage();
